// $_FILEHEADER_BEGIN ***************************
// 版权声明:Timer
// Copyright © 2012 - Timer All Rights Reserved
// 文件名称: ClientNavigationHelper.m
// 创建日期: 15/11/29
// 创 建 人: 甄鑫
// 文件说明: <#content#>
// $_FILEHEADER_END ******************************


#import "NavHelper.h"
#import "NavStatus.h"

#import "FindViewController.h"
#import "MessageViewController.h"
#import "ActiveViewController.h"
#import "SettingViewController.h"
#import "QuestionViewController.h"
#import "RegiestWXViewController.h"
#import "VerifyPhoneViewController.h"
#import "IWillBorrowController.h"
#import "BorrowReasonVC.h"
#import "BorrowHuanKuanPlanVC.h"
#import "BorrowHuanKuanInstructionsVC.h"
#import "BorrowingColorVC.h"
#import "UserInfoVC.h"
#import "RealNameVC.h"
#import "ContactDetailViewController.h"
#import "BrushStartVC.h"
#import "SafeVC.h"
#import "AboutVC.h"
#import "AddFriendVC.h"
#import "ErDuFriendVC.h"
#import "MeBalanceVC.h"
#import "CanBeBrrowedVC.h"
#import "YuJiShouYiVC.h"
#import "MeTotalAssetsVC.h"
#import "PopularityVC.h"
#import "MyCouponsVC.h"
#import "CreditLimitVC.h"
#import "FriendEDUVC.h"
#import "FriendMoreVC.h"
#import "BorrowOutConpousVC.h"
#import "SearchPhoneVC.h"
#import "SearchResultVC.h"
#import "FriendInfo.h"
#import "BorrowOutSuccess.h"
#import "ReimbursementVC.h"
#import "AddAddressBookFriendVC.h"
#import "SearchAddVC.h"
#import "ShareVC.h"
#import "SendMsgVC.h"
#import "PassFriendVC.h"
#import "ConpousInstructionsVC.h"
#import "SubQuestionVC.h"
#import "ChongZhiSuccess.h"
#import "HuanKuanSuccessVC.h"


@implementation NavHelper
+ (void)gotoLoginVC
{
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    VerifyPhoneViewController * loginVC = [[VerifyPhoneViewController alloc]init];
    [nav presentViewController:loginVC animated:YES completion:^{
        
    }];
    //[[NavStatus sharedInstance]setCurWindowType:WINDOW_TYPE_LOGIN];
}

+ (void)gotoFindVC
{
    [[NavStatus sharedInstance]setCurTabBarType:0];
}

+ (void)gotoHomeBrushVC
{
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [nav popToRootViewControllerAnimated:NO];
    [[NavStatus sharedInstance]setCurTabBarType:TABBAR_TYPE_BRUSH_FACE];
    [[NavStatus sharedInstance]setCurTabBarType:0];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"LOGINOUT" object:nil];
}


+ (void)gotoFindMsgVC
{
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    UIViewController * _vc =[[MessageViewController alloc] init];
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
+ (void)gotoFindActiveVC{
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    UIViewController * _vc =[[ActiveViewController alloc] init];
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];

}
+ (void)gotoSettingVC{
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    UIViewController * _vc =[[SettingViewController alloc] init];
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoQuestionVC{
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    UIViewController * _vc =[[QuestionViewController alloc] init];
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];

}

+ (void)gotoRegiestWX
{
    RegiestWXViewController * _vc = [[RegiestWXViewController alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoVerifyPhoneVC
{
    VerifyPhoneViewController * _vc = [[VerifyPhoneViewController alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoIWillBorrowVC
{
    IWillBorrowController * _vc = [[IWillBorrowController alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoBorrowReasonVC
{
    BorrowReasonVC * _vc = [[BorrowReasonVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
+ (void)gotoBorrowHuanKuanPlanVC{
    BorrowHuanKuanPlanVC * _vc = [[BorrowHuanKuanPlanVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];

}
+ (void)gotoBorrowHuanKuanInstructionsVC{
    BorrowHuanKuanInstructionsVC * _vc = [[BorrowHuanKuanInstructionsVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];

}

+ (void)gotoBorrowingColorVCWithHopeID:(NSString *)hopeid{
    BorrowingColorVC * _vc = [[BorrowingColorVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    _vc.hopeid = hopeid;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoAssetsRecordVC:(NSInteger)type andBaseType:(BASETYPE)base andHopeId:(NSString *)hopeid
{
    AssetsRecordVC * _vc = [[AssetsRecordVC alloc]init];
    _vc.vcType = type;
    _vc.baseType = base;
    _vc.hopeId = hopeid;
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoUserInfoVC{
    UserInfoVC * _vc = [[UserInfoVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];

}

+ (void)gotoRealNameVCWithType:(NSInteger)type{
    RealNameVC * _vc = [[RealNameVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    _vc.type = type;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoContactDetailVCWithUserId:(NSString *)userID {
    ContactDetailViewController * _vc = [[ContactDetailViewController alloc]init];
    _vc.userid = userID;
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoJieruJieChuVCWithType:(FINANCE_TYPE)type {
    JieRuJieChuVC * _vc = [[JieRuJieChuVC alloc]initWithType:type];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoBrushVC {
    BrushStartVC * _vc = [[BrushStartVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}


+ (void)gotoSafeVC {
    SafeVC * _vc = [[SafeVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

+ (void)gotoAboutVC{
    AboutVC * _vc = [[AboutVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
+ (void)gotoAddFriendVC{
    AddFriendVC * _vc = [[AddFriendVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
+ (void)gotoErDuFriendVC{
    ErDuFriendVC * _vc = [[ErDuFriendVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
/**
 *  我的余额
 */
+ (void)gotoMeBalance{
    MeBalanceVC * _vc = [[MeBalanceVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
/**
 *  我的总资产
 */
+ (void)gotoMeTotalAssets{
    MeTotalAssetsVC * _vc = [[MeTotalAssetsVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
/**
 *  我的人气
 */
+ (void)gotoMePopular{
    PopularityVC * _vc = [[PopularityVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
/**
 *  我的优惠券
 */
+ (void)gotoMyCoupons{
    MyCouponsVC * _vc = [[MyCouponsVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}
/**
 *  信用额度
 */
+ (void)gotoCreditLimitVC{
    CreditLimitVC * _vc = [[CreditLimitVC alloc]init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [_vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:_vc animated:YES];
}

/**
 *  可出借
 */
+ (void)gotoCanBorrowWithHopeId:(NSString *)hopeId{
    CanBeBrrowedVC *vc = [[CanBeBrrowedVC alloc] initWithNibName:@"CanBeBrrowedVC" bundle:[NSBundle mainBundle]];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.hopeID = hopeId;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}
//预计收益
+ (void)gotoYuJiShouYIWithHopeId:(NSString *)hopeId{
    YuJiShouYiVC *vc = [[YuJiShouYiVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.hopeID = hopeId;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}
//好友信用额度
+ (void)gotoFriendEDWithFriendID:(NSString *)userId{
    FriendEDUVC *vc = [[FriendEDUVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.userid = userId;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];

}

/**
 *  好友更多界面
 */
+ (void)gotoFriendMoreVCWithFriendID:(NSDictionary *)userId{
    FriendMoreVC *vc = [[FriendMoreVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.dict = userId;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];

}
/**
 *  搜索好友界面
 */
+ (void)gotoSearchPhoneFriend{

    SearchPhoneVC *vc = [[SearchPhoneVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}

/**
 *  搜索到好友界面
 */
+ (void)gotoSearchResultWithDict:(NSDictionary *)dict{
    SearchResultVC *vc = [[SearchResultVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.dict = dict;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}
/**
 *  添加手机联系人
 */
+ (void)gotoAddAddressBookFriendVC{
    AddAddressBookFriendVC *vc = [[AddAddressBookFriendVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}
/**
 *  添加好友看好友
 */
+ (void)gotoFriendInFoVCWith:(NSString *)friendID andStatus:(NSInteger)status{
    FriendInfo *vc = [[FriendInfo alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.userid = friendID;
    vc.status = status;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];

}
/**
 *  可出借出借成功
 */
+ (void)gotoBorrowOutSuccess{
    BorrowOutSuccess *vc = [[BorrowOutSuccess alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];

}
/**
 *  充值成功
 */
+ (void)gotoChongZhiSuccess{
    ChongZhiSuccess *vc = [[ChongZhiSuccess alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
    
}
/**
 *  还款成功
 */
+ (void)gotoHuanKuanSuccess{
    HuanKuanSuccessVC *vc = [[HuanKuanSuccessVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}
/**
 *  还款界面
 */
+ (void)gotoReimbursementVCWith:(NSString *)hopeid{
    
    ReimbursementVC*vc = [[ReimbursementVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.hopeID = hopeid;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}

/**
 *  发送好友验证界面
 */
+ (void)gotoSendFriendVCWithFriendID:(NSString *)friendid andSource:(NSString *)source{
    
    SearchAddVC*vc = [[SearchAddVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.userid = friendid;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}
/**
 *  分享微信页面
 */

+(void)gotoShareWechatVCWith:(NSInteger)type{
    
    ShareVC*vc = [[ShareVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.sharetype = type;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];

}

/**
 *  去评论页面
 */
+ (void)gotoSendMsgVCWithHopeID:(NSString *)hopeid{
    SendMsgVC*vc = [[SendMsgVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.hopeid = hopeid;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
}

//接受添加好友申请
+ (void)gotoPassFriendVCWithUserID:(NSString *)userid{
    PassFriendVC*vc = [[PassFriendVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.userid = userid;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];


}
/**
 *  优惠券使用说明
 */
+ (void)gotoInstructionsWithConpousVC{
    
    ConpousInstructionsVC *vc = [[ConpousInstructionsVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];

}

/**
 *  子问题界面
 */
+ (void)gotoSubQuestionVCWithType:(NSInteger)type{
    
    SubQuestionVC *vc = [[SubQuestionVC alloc] init];
    UINavigationController * nav = [[NavStatus sharedInstance]getCurVC].navigationController;
    vc.type = type;
    [vc setHidesBottomBarWhenPushed:YES];
    [nav pushViewController:vc animated:YES];
    
}
@end
